export const MODULE = {
  BANNER: "banner",
};
export const dishTimeTypeList = [
  {
    label: "早餐",
    value: 1,
  },
  {
    label: "午餐",
    value: 2,
  },
  {
    label: "晚餐",
    value: 3,
  },
];

export const filterDishTimeTypeList = (type) => {
  return dishTimeTypeList.find((item) => item.value === type)?.label || "-";
};

export const reserveOptions = [
  {
    label: "昨日预定",
    value: 1,
  },
  {
    label: "前日预定",
    value: 2,
  },
  {
    label: "7天内预定",
    value: 3,
  },
  {
    label: "30天内预定",
    value: 4,
  },
];

export function addArgument(fn, newArg) {
  if (fn) {
    return function (...args) {
      console.log("args===", args);
      return fn(...args, newArg);
    };
  }
  return null;
}
